package net.hancl.modules.sys.threads;

import net.hancl.common.utils.spring.SysApplicationContext;
import net.hancl.modules.sys.entity.SysLog;
import net.hancl.modules.sys.service.ILogService;
import org.apache.commons.lang3.StringUtils;

public class SysLogRunnable implements Runnable {

    private SysLog log;

//	@Autowired
//	private ILogService logService;

    public SysLogRunnable(){

    }

    public SysLogRunnable(SysLog log){
        this.log=log;
    }

    public void run() {
        ILogService logService = (ILogService) SysApplicationContext
                .getBean("logService");
        if(log==null){
            return;
        }

        if(!StringUtils.isBlank(log.getUri())){

        }


        logService.add(log);

    }

}
